package com.xjc.business.service;

import com.xjc.business.entity.domain.Activities;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjc.business.entity.po.classadmin.ClassActivityPo;
import com.xjc.business.entity.vo.PageVo;
import com.xjc.business.entity.vo.classadmin.ClassActivityVo;
import com.xjc.business.entity.vo.stu.ActivityVo;
import com.xjc.system.result.Result;

import java.util.List;

/**
* @author root
* @description 针对表【activities(宿舍评优活动表)】的数据库操作Service
* @createDate 2025-01-25 10:24:30
*/
public interface ActivitiesService extends IService<Activities> {

    /**
     * 获取宿舍评优活动列表
     * @param pageSize 每页显示条数
     * @param currentPage 当前页
     * @param classAdminId 辅导员id
     * @param status 状态
     * @return Result
     */
    Result<PageVo<ClassActivityVo>> getActivityPage(Integer pageSize, Integer currentPage, Integer classAdminId, Integer status);

    /**
     * 添加宿舍评优活动
     * @param classActivityPo 宿舍评优活动
     * @return Result
     */
    Result<String> addActivity(ClassActivityPo classActivityPo);

    /**
     * 获取宿舍评优活动列表
     * @param wxId 微信id
     * @param level 级别
     * @return Result
     */
    Result<List<ActivityVo>> getActivityListWithLevel(Integer wxId, Integer level);

    /**
     * 判断活动是否结束
     * @param id 宿舍评优活动参加记录id
     * @return Result
     */
    Result<Boolean> isTimeOut(Integer id);
}
